package com.estate.utils;

public class AnnouncementUtil {

	public static int getAnnouncementInt(String announcementString){
		int announcement = 0;
		
		if("未发布".equals(announcementString)){
			announcement = 1;
		}else if("已发布".equals(announcementString)){
			announcement = 2;
		}
		
		return announcement;
	}
	
	public static String getAnnouncementString(int announcementInt){
		String announcement = "";
		
		if(announcementInt == 1){
			announcement = "未发布";
		}else if(announcementInt == 2){
			announcement = "已发布";
		}
		return announcement;
	}
}
